package com.cloudpan.entity.bo;

import com.cloudpan.common.annotate.PasswordVaild;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;

/**
 * @Author sc
 * @DATE 2023/11/6 9:46
 * @Description:
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CpUserChangePwd对象", description="用户修改密码")
public class SysUserChangePwdBo {

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "原密码不能为空")
    private String password;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空")
    @PasswordVaild
    private String newPwdone;

    @ApiModelProperty(value = "再次输入新密码")
    @NotBlank(message = "请再次输入新密码")
    @PasswordVaild
    private String newPwdtwo;

    @ApiModelProperty(value = "验证码code")
    @NotBlank(message = "验证码不能为空")
    private String code;

}
